﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PageControl.ascx.cs"
    Inherits="Admin.UserControls.PageControl" %>
<%@ Import Namespace="System.Data" %>
<script type="text/javascript">
    //回车自动提交表单
    function GotoPage() {
        var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
        if (keyCode == 13) {
            document.getElementById("<%=btnPageSubmit.ClientID %>").click();
        }
    }
</script>
<div class="pagenumber">
    <span>共&nbsp;<%=AllCount%>&nbsp;条</span>&nbsp;<span>共&nbsp;<%=PageCount%>&nbsp;页</span>&nbsp;
    <%if (showPage)
      { %>
    <asp:HyperLink ID="hlk_first" Visible="False" runat="server">首页</asp:HyperLink><asp:HyperLink
        ID="hlk_pre" runat="server">上一页</asp:HyperLink><asp:Repeater runat="server" ID="rpt_page">
            <ItemTemplate>
                <%# ((DataRowView)Container.DataItem)["pageshow"].ToString()%></ItemTemplate>
        </asp:Repeater>
    <asp:HyperLink ID="hlk_next" runat="server">下一页</asp:HyperLink><asp:HyperLink ID="hlk_last"
        Visible="False" runat="server">末页</asp:HyperLink>
    <span>跳到
        <input type="text" value="" id="txt_GoPage" runat="server" maxlength="4" size="2"
            onkeyup="GotoPage()" />
        页<input type="submit" id="btnPageSubmit" value="go" onserverclick="BtnPageSubmit_ServerClick"
            runat="server" class="button1" /></span>
    <%} %>
</div>
